﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ForumList.aspx.cs" Inherits="SysManage.Module.Forum.ForumList" %>

<!DOCTYPE html>

<html>
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager1" AutoSizePanelID="RegionPanel1" runat="server"></f:PageManager>
        <f:RegionPanel ID="RegionPanel1" ShowBorder="false" runat="server">
            <Regions>
                <f:Region ID="Region1" ShowBorder="false" ShowHeader="true" BodyPadding="5px" Width="300px"
                     Position="Left" Layout="Fit" runat="server">
                    <Items>
                        <f:Tree ID="TreeForumType" AutoLeafIdentification="true"  Width="650px" EnableCollapse="true"
                            ShowHeader="false" Title="版块" OnNodeCommand="TreeForumType_NodeCommand" runat="server">                          
                        </f:Tree>
                    </Items>
                </f:Region>
               <f:Region ID="Region2" ShowBorder="false" ShowHeader="false" Position="Center" Layout="VBox" BoxConfigAlign="Stretch" BoxConfigPosition="Left" BodyPadding="5px 5px 5px 0" runat="server">
                    <Items>                 
                        <f:Grid ID="Grid2" runat="server" BoxFlex="1" ShowBorder="true" ShowHeader="false" EnableCheckBoxSelect="true"
                            DataKeyNames="ID,Title" AllowSorting="true" OnSort="Grid2_Sort" SortField="Title" SortDirection="DESC" AllowPaging="true" IsDatabasePaging="true" OnPreDataBound="Grid2_PreDataBound" OnRowCommand="Grid2_RowCommand" OnPageIndexChange="Grid2_PageIndexChange">
                            <Toolbars>
                                <f:Toolbar ID="Toolbar1" runat="server">
                                    <Items>
                                        <f:Button ID="btnDeleteSelected" Icon="Delete" runat="server" Text="删除选中的版块" OnClick="btnDeleteSelected_Click">
                                        </f:Button>
                                        <f:ToolbarFill ID="ToolbarFill1" runat="server">
                                        </f:ToolbarFill>
                                        <f:Button ID="btnAdd" runat="server" Icon="Add" EnablePostBack="false" Text="新增">
                                        </f:Button>
                                    </Items>
                                </f:Toolbar>
                            </Toolbars>
                            <PageItems>
                                <f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
                                </f:ToolbarSeparator>
                                <f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数：">
                                </f:ToolbarText>
                                <f:DropDownList ID="ddlGridPageSize" Width="80px" AutoPostBack="true" OnSelectedIndexChanged="ddlGridPageSize_SelectedIndexChanged" runat="server">
                                    <f:ListItem Text="10" Value="10"></f:ListItem>
                                    <f:ListItem Text="20" Value="20"></f:ListItem>
                                    <f:ListItem Text="50" Value="50"></f:ListItem>
                                    <f:ListItem Text="100" Value="100"></f:ListItem>
                                </f:DropDownList>
                            </PageItems>
                            <Columns>
                                <f:RowNumberField></f:RowNumberField>
                                <f:BoundField DataField="Title"  ExpandUnusedSpace="true" HeaderText="版块名称"></f:BoundField>
                                <f:BoundField DataField="IsShowIndexName" Width="150px" HeaderText="论坛首页显示"></f:BoundField>
                                 <f:BoundField DataField="OrderNo" Width="150px" HeaderText="序号"></f:BoundField>
                                <f:WindowField ColumnID="editField" TextAlign="Center" Icon="Pencil" HeaderText="编辑" ToolTip="编辑" WindowID="Window1"
                                    Title="编辑" DataIFrameUrlFields="ID"
                                    DataIFrameUrlFormatString="ForumEdit.aspx?id={0}"
                                    Width="50px" />
                                <f:LinkButtonField ColumnID="deleteField" TextAlign="Center" Icon="Delete"
                                    ToolTip="删除" ConfirmText="确定删除此版块？" ConfirmTarget="Top" HeaderText="删除" CommandName="Delete" Width="50px">
                                </f:LinkButtonField>
                            </Columns>
                        </f:Grid>
                    </Items>
                </f:Region>
            </Regions>
        </f:RegionPanel>
        <f:Window ID="Window1" CloseAction="Hide" runat="server" IsModal="true"
             Hidden="true" Target="Top" EnableResize="true" EnableMaximize="false" EnableIFrame="true" 
            IFrameUrl="about:blank" Width="700px" Height="550px" OnClose="Window1_Close">
        </f:Window>
          <f:HiddenField ID="hdParentID" runat="server">
           
        </f:HiddenField>
    </form>
</body>
</html>
